<template>
  <div class="view-container">
    <el-table
      :data="tableData"
      tooltip-effect="dark"
      style="width: 100%"
      @selection-change="handleSelectionChange">
      <el-table-column
        type="selection"
        width="55">
      </el-table-column>
      <el-table-column
        label="标题"
        width="1000">
        <template slot-scope="scope"><el-link>{{ scope.row.letterTitle }}</el-link></template>
      </el-table-column>
      <el-table-column
        prop="letterType"
        label="督办类别"
        width="120">
      </el-table-column>

      <el-table-column
        prop="letterSource"
        label="办事事项"
        width="120">
      </el-table-column>

      <el-table-column
        prop="latestDate"
        label="拟交办日期"
        width="160">
      </el-table-column>

      <el-table-column
        prop="name"
        label="办结权限"
        width="120">
      </el-table-column>


      <el-table-column
        prop="signIndex"
        label="当前步骤"
        show-overflow-tooltip>
      </el-table-column>
    </el-table>
  </div>
</template>

<script>
  import letter  from "@/api/letter/letter/"
  export default {
    // getliouchongList

    name: "",
    data() {
      return {
        tableData:[],
      }
    },
    created() {
      this.liouchonglist()
    },
    methods: {
      handleSelectionChange(val) {
        console.log(val)
      },

      liouchonglist(){
        letter.getliouchongList().then(res=>{
          this.tableData = res.records
          console.log(this.tableData)
        })
      }
    }
  }
</script>

<style scoped lang="scss">

</style>
